package com.wlw.exception;

import com.wlw.enums.AppUserExceptionEnum;

/**
 * APP操作异常
 */
public class AppUserException extends Exception{

    private int code;

    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public AppUserException() {

    }

    public AppUserException(AppUserExceptionEnum exceptionEnum) {
        this.code = exceptionEnum.getCode();
        this.message = exceptionEnum.getMessage();
    }


    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
